package com.econvent.common.conn.config;

import lombok.Data;

import java.util.Properties;

/**
 * HikariCp 数据源 参数 配置
 *
 * @author xiekun
 * @since 1.0.0
 */
@Data
public class HikariCpConfig implements BaseConfig {
    private String catalog;

    private Long connectionTimeout;

    private Long validationTimeout;

    private Long idleTimeout;

    private Long leakDetectionThreshold;

    private Long maxLifetime;

    private Integer maxPoolSize;

    private Integer maximumPoolSize;

    private Integer minIdle;

    private Integer minimumIdle;

    private Long initializationFailTimeout;

    private String connectionInitSql;

    private String connectionTestQuery;

    private String dataSourceClassName;

    private String dataSourceJndiName;

    private String transactionIsolationName;

    private Boolean isAutoCommit;

    private Boolean isReadOnly;

    private Boolean isIsolateInternalQueries;

    private Boolean isRegisterMbeans;

    private Boolean isAllowPoolSuspension;

    private Properties dataSourceProperties;

    private Properties healthCheckProperties;

    private String schema;

    private String exceptionOverrideClassName;

    private Long keepaliveTime;

    private Boolean sealed;
}